package com.hengxinguotong.zhihuichengjian.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @CopyRight 恒信国通信息科技
 * @Author WuLei
 * @Date 2019/3/14
 *
 * 考勤统计
 */

public class AttendanceStatistics implements Serializable {
    private List<String> xData;//时间轴
    private List<Float> yData
            ;//	数据轴（type为3,4,5,6,7时返回）
    private float alarmValue
            ,//	报警阈值
            warningValue
                    ;//	预警阈值

    public List<String> getxData() {
        if(xData != null && xData.size() > 0){
            for (int i = 0; i < xData.size(); i++) {
                String str = xData.get(i);
                if(str.length() > 6){
                    str = str.substring(0, 6);
                    xData.set(i, str);
                }
            }
        }
        return xData;
    }

    public void setxData(List<String> xData) {
        this.xData = xData;
    }

    public List<Float> getyData() {
        return yData;
    }

    public void setyData(List<Float> yData) {
        this.yData = yData;
    }

    public float getAlarmValue() {
        return alarmValue;
    }

    public void setAlarmValue(float alarmValue) {
        this.alarmValue = alarmValue;
    }

    public float getWarningValue() {
        return warningValue;
    }

    public void setWarningValue(float warningValue) {
        this.warningValue = warningValue;
    }
}
